projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac17217
)
tests/animated-resizing: Use gtk_window_default_size() instead
author
Jonas Ådahl
<jadahl@gmail.com>
Mon, 7 Dec 2020 08:41:54 +0000
(09:41 +0100)
committer
Jonas Ådahl
<jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:29 +0000
(20:37 +0100)
This will actually make it resize on-demand, as the default size is the
size used when computing the window size when the size is not fixed.
tests/animated-resizing.c
patch
|
blob
|
history
diff --git
a/tests/animated-resizing.c
b/tests/animated-resizing.c
index c9a316a5608095c638f6acff835c521514179b70..bf7a0b68c49e0d55b5065392a7aceabfb1363bbb 100644
(file)
--- a/
tests/animated-resizing.c
+++ b/
tests/animated-resizing.c
@@
-123,7
+123,7
@@
on_frame (double progress)
window_height = HEIGHT + jitter;
}
- gtk_wi
dget_set_size_request (gtk_window_get_child (GTK_WINDOW (window)
),
+ gtk_wi
ndow_set_default_size (GTK_WINDOW (window
),
window_width, window_height);
gtk_widget_queue_draw (window);